﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AreaSelect_Test.aspx.cs" Inherits="System_AreaSelectTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script language="vbscript" type="text/vbscript">
    Sub AreaSelect(byval id)
        Dim strReturnValue
		strReturnValue = showModalDialog("../System/AreaSelect.aspx?ROOT=" & id,null,"dialogWidth:320px;dialogHeight:480px;status:0;scroll:no;center:yes;help:no;")
		If Len(strReturnValue) > 0 Then
		    document.all("TextBox1").value = Split(strReturnValue,vbCrLf)(0)
		    document.all("TextBox2").value = Split(strReturnValue,vbCrLf)(1)
		End If
    End Sub
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <a href="javascript:AreaSelect(0)">选择地区(全国)</a><br />
    <a href="javascript:AreaSelect(540000)">选择地区(湖北)</a><br />
    <a href="javascript:AreaSelect(320000)">选择地区(江苏)</a><br />
    <a href="javascript:AreaSelect(320100)">选择地区(南京)</a><br />
    <a href="javascript:AreaSelect(530000)">选择地区(云南)</a><br />
        <br />
        地区编号：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        地区名称：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>
